from PIL import Image
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

#https://www.programcreek.com/python/example/100026/selenium.webdriver.FirefoxProfile

options = webdriver.FirefoxOptions()
#options.set_headless(True)

profile = webdriver.FirefoxProfile()
profile.set_preference("general.useragent.override", "hahahahh")
browser = webdriver.Firefox(profile)

browser.get('http://localhost:8080')

testBtn = browser.find_element_by_id("testBtn")

testBtn.click()

ActionChains(browser).move_to_element(testBtn).click(testBtn).perform()

time.sleep(10)
browser.quit()
